//引入项目中的全局组件
import SvgIcon from "./SvgIcons/index.vue";
import Category from "./Category/index.vue";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
const AllComponents = { SvgIcon, Category };
export default {
  install(app: any) {
    Object.keys(AllComponents).forEach((key) => {
      //注册全局组件
      //@ts-ignore
      app.component(key, AllComponents[key]);
    });
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component);
    }
  },
};
